﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"Debug="true" Inherits="车主_1_Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            height: 87px;
            background-image: url('../../photo/8.jpg');
        }
        .auto-style2 {
            width: 70%;
            height: 443px;
            background-color: #00FF00;
        }
        .auto-style3 {
            font-family: 楷体;
            font-size: xx-large;
            font-style: italic;
            font-weight: bold;
        }
        .auto-style5 {
            width: 100%;
        }
        .auto-style6 {
            height: 284px;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="auto-style1">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    
    </div>
    <table align="center" cellspacing="1" class="auto-style2">
        <tr>
            <td class="auto-style3">----车主信息的添加</td>
        </tr>
        <tr>
            <td class="auto-style6">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CAR_ID" DataSourceID="DataSource1" OnPageIndexChanging="GridView1_PageIndexChanging1" OnRowEditing="GridView1_RowEditing1" OnRowUpdating="GridView1_RowUpdating1" AllowPaging="True">
                    <Columns>
                        <asp:BoundField DataField="CAR_NUMBER" HeaderText="CAR_NUMBER" SortExpression="CAR_NUMBER" />
                        <asp:BoundField DataField="CAR_NAME" HeaderText="CAR_NAME" SortExpression="CAR_NAME" />
                        <asp:BoundField DataField="CAR_ID" HeaderText="CAR_ID" ReadOnly="True" SortExpression="CAR_ID" />
                        <asp:BoundField DataField="CAR_PRICE" HeaderText="CAR_PRICE" SortExpression="CAR_PRICE" />
                        <asp:BoundField DataField="CAR_OID" HeaderText="CAR_OID" SortExpression="CAR_OID" />
                        <asp:BoundField DataField="CAR_PASSWORD" HeaderText="CAR_PASSWORD" SortExpression="CAR_PASSWORD" />
                        <asp:BoundField DataField="CAR_STATE" HeaderText="CAR_STATE" SortExpression="CAR_STATE" />
                        <asp:CommandField ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="DataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testDBConnectionString %>" SelectCommand="SELECT * FROM [Car_users]"></asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="Button1" runat="server" BackColor="Lime" BorderColor="Lime" Height="36px" OnClick="Button1_Click" style="margin-left: 123px" Text="提交" Width="69px" />
                <asp:Button ID="Button2" runat="server" BackColor="Lime" BorderColor="Lime" Height="32px" style="margin-left: 357px" Text="重置" Width="55px" />
            </td>
        </tr>
    </table>
        <table class="auto-style5">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
    </body>
</html>
